﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace simulation
{
    class prm
    {
        private string eng_name;
        //private string heb_name;
        //private string type;
        private Dictionary<Guid, string> Value = new Dictionary<Guid, string>();

        public prm(string engName)
        {
            this.eng_name = engName;
        }

        public void ADDOBJ(Guid id, string val)
        {
            Value.Add(id, val);
            foreach (var k in Value)
            {
                Console.WriteLine(getEngName());
                Console.WriteLine("{0} {1}", k.Key, k.Value);
                Console.WriteLine("---------------------------------");
            }
        }

        public string GETVALUE(Guid id)
        {
            return Value[id];
        }

        public void SETVALUE(Guid id,string nVal)
        {
            Value[id] = nVal;
            foreach (var k in Value)
            {
                Console.WriteLine(getEngName());
                Console.WriteLine("{0} {1}", k.Key, k.Value);
                Console.WriteLine("---------------------------------");
            }
        }

        public string getEngName()
        {
            return this.eng_name;
        }
    }
}
